package 实用类作业.fourthquestion;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class DoubleColorBall {

    public static void main(String[] args) {
        List list = new ArrayList();
        Random random = new Random();
        int count=0;
        while (count<6){
            int num=random.nextInt(34);
            if (!list.contains(num)){
                list.add(num);
            }else {
                continue;
            }
            count++;
        }

        int num2=(int)(Math.random()*17);
        for (int i = 0; i <list.size() ; i++) {
            System.out.println(list.get(i));
        }
        System.out.println(num2);
    }
}
